<?php ?>
<script type="text/javascript">

function  print(){
        $("#DY").jqprint();
    }
</script>

<form name="frm" method="post" action="">
<div id="DY">
<table border="1" align="center" width="930px" cellpadding="0" cellspacing="0"  class="stamp_table">
  <tr>
  	<td colspan="5" align="center" class="title"  style="border:1px solid #CCC;text-align:center">格子仓自提清单</td>
  </tr>
 <tr>
 	<td colspan="5"   style="border:1px solid #CCC;">
 		<div class="left_name" style="text-align:center;">用户ID：<?php  echo $user->uid ?></div>
 		<div class="center_name"style="text-align:center;">用户名：<?php  echo $user->name ?></div>
 		<div class="right_name"style="text-align:center;">打印时间：<?php echo date('Y-m-d H:i:s',time());?></div>
 	</td>
  </tr>
  <tr>
  	<td class="stamp_td">订单号：</td>
  	<td class="stamp_td">包裹运单号：</td>
  	<td class="stamp_td" >发货时间：</td>
	<td class="stamp_td">包裹备注信息：</td>
  	<td class="stamp_td">联系电话：</td>
  </tr>
  <?php 
  foreach($stamp as $key=>$v)

   :?>

  
  <tr>
	<td   class="stamp_td  stamp_width_a"><?php  echo $v[0]->order_number ?></td>
	<td   class="stamp_td stamp_width_b">
		<?php foreach($v as $key2=>$v2): $key2++?>			
 		 <div  class="stamp_table_div" style="	border-top:1px solid #CCC;padding:5px;position: relative;top:-5px;"><span style='margin-right:5px;'>包裹<?php echo $key2?>:</span><?php  echo $v2->express_number ?></div>
		<?php endforeach; ?>
	</td>

  	<td  class="stamp_td">
		<?php foreach($v as $key2=>$v2):?>	
  				<div class="stamp_table_div" class="stamp_table_div" style="	border-top:1px solid #CCC;padding:5px;position: relative;top:-5px;"><?php  echo $v2->aog_Time?></div>
		<?php endforeach; ?>
  	</td>
  	
	<td class="stamp_td">
		<?php foreach($v as $key2=>$v2):?>	
  				<div class="stamp_table_div" style="	border-top:1px solid #CCC;padding:5px;position: relative;top:-5px;"><?php echo $v2->order_remark?></div>
		<?php endforeach; ?>
  	</td>
  	
  	  	<td  class="stamp_td"><?php echo $v[0]->order_iphone?></td>

</tr>
<?php endforeach; ?>
  <tr> 
  	<td  class="orderleft_left" colspan="2" style="border:1px solid #CCC;border-right:none;">提货人：</td>
	<td colspan="3" align="right" class="orderleft_right" style="border:1px solid #CCC;border-left:none;text-align:right">提货时间：<span>年</span>      <span>月</span>      <span>日</span></td>
  </tr>
</table>
<div><input type="button" onclick=" print()" class="sub" value="自提单打印"/></div>
</div>
</form>
